package behaviour.gui;

import java.util.Set;

import jade.core.AID;
import jade.core.behaviours.OneShotBehaviour;
import jade.lang.acl.ACLMessage;

public class SendClearOldPosBehaviour extends OneShotBehaviour {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4104373051979368602L;
	
	private Set<AID> receivers;
	
	public SendClearOldPosBehaviour(Set<AID> receivers) {
		this.receivers = receivers;
	}

	@Override
	public void action() {
		ACLMessage msg = new ACLMessage(ACLMessage.INFORM);
		for(AID aid : receivers)
			msg.addReceiver(aid);
		msg.setConversationId("clear-position");
		myAgent.send(msg);

	}

}
